Skip to content

Publish uwtools releases to PyPI - #969

Merged
elcarpenterNOAA merged 5 commits into
ufs-community:mainfrom
elcarpenterNOAA:publish-to-pypi
Sep 8, 2026
Merged

Publish uwtools releases to PyPI#969
elcarpenterNOAA merged 5 commits into
ufs-community:mainfrom
elcarpenterNOAA:publish-to-pypi

Conversation

@elcarpenterNOAA

@elcarpenterNOAA elcarpenterNOAA commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Synopsis

  • build a PyPI wheel as part of the release workflow
  • publish release wheels to PyPI using Trusted Publishing
  • add CI build tooling to create wheel

Testing: I did a test on my fork (see PR here) and successfully published a package to TesPyPI, which you can try out here. I installed it locally, and confirmed it was working and that ecflow was excluded from uw --help.

Documentation still needs to be written, but I don't feel I'm in a position to write it until it actually exists on PyPI.

Type

  • Bug fix (corrects a known issue)
  • Code maintenance (refactoring, etc. without behavior change)
  • Documentation
  • Enhancement (adds new functionality)
  • Tooling (CI, code-quality, packaging, revision-control, etc.)

Impact

  • This is a breaking change (changes existing functionality)
  • This is a non-breaking change (existing functionality continues to work as expected)

Checklist

  • I have added myself and any co-authors to the PR's Assignees list.
  • I have reviewed the documentation and have made any updates necessitated by this change.
  • Where helpful, I have written comments in this PR's Files changed view to assist reviewers.

@elcarpenterNOAA elcarpenterNOAA self-assigned this Aug 27, 2026
Comment thread .github/scripts/pypi-package-build.sh
Comment thread .github/workflows/release.yaml
@elcarpenterNOAA
elcarpenterNOAA marked this pull request as ready for review August 27, 2026 23:11

@maddenp-cu maddenp-cu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If anything goes wrong at release time, it's easy to remove conda packages from our ufs-community channel and re-run the release workflow without incrementing versions. Not so easy with PyPI, of course. 🤞

Comment thread .github/scripts/pypi-package-build.sh
Comment thread .github/workflows/release.yaml Outdated
Comment thread src/setup.py
Comment thread .github/scripts/pypi-package-build.sh
@elcarpenterNOAA
elcarpenterNOAA merged commit 439a6f6 into ufs-community:main Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants